package com.wayhome.srpingbootmybatis.policy.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

@Data
public class InsertPolicyDocDTO {

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "政策类别 1:待遇类 2:价格类 3:支付类 4:目录类 5:综合类 6:征缴类 99:其他政策类别 1:待遇类 2:价格类 3:支付类 4:目录类 5:综合类 6:征缴类 99:其他")
    private String policyType;

    @ApiModelProperty(value = "年份")
    private String policyYear;

    @ApiModelProperty(value = "文号")
    private String docNo;

    @ApiModelProperty(value = "文件名称")
    private String docName;

    @ApiModelProperty(value = "具体发文时间")
    private String pubDateStr;

    @ApiModelProperty(value = "具体发文时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date pubDate;

    @ApiModelProperty(value = "发文单位")
    private String pubDept;

    @ApiModelProperty(value = "是否补充或调整")
    private String suptFlag;

    @ApiModelProperty(value = "补充或调整对应的文号")
    private String suptDocNo;

    @ApiModelProperty(value = "文件有效时限")
    private String docLmtPeriod;

    @ApiModelProperty(value = "是否在有效期内")
    private String effectiveFlag;

    @ApiModelProperty(value = "是否上传附件")
    private String uploadFlag;

    @ApiModelProperty(value = "区划")
    private String admdvs;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "上传的文件")
    private MultipartFile[] files;
}
